import axios from 'axios';
axios.defaults.timeout = 300000;
if (process.env.NODE_ENV == 'development') {
  axios.defaults.baseURL = 'http://jsonplaceholder.typicode.com/'
} else if (process.env.NODE_ENV == 'production' ) {
  axios.defaults.baseURL = window.g.baseURL
}
// export const requestLogin = params => { return axios.post(`https://www.baidufe.com/test-post.php`, params).then(res => res.data); };
export const getList = () => { return axios.get(`users`); };

